import request from "../utils/request"
import store from "../store"

export const login=((data)=>{
return request({
    method:"POST",
    url:"/front/login",
    data,
})
})

export const regSendMail=((email)=>{
    return request({
        method:"POST",
        url:"/front/reg/sendVerifyCode",
        params:{
            email:email
        },
    })
    })

    export const regsubmit=((data)=>{
        return request({
            method:"POST",
            url:"/front/reg/submit",
            data:data,
        })
        })



export const getUserInfo=(()=>{
    return request({
        method:"GET",
        url:"/front/userInfo",
    })
})

export const editorUserInfo=((data)=>{
    return request({
        method:"POST",
        url:"/front/usereditor",
        params:data
    })
})

export const logtime=(()=>{
    return request({
        method:"GET",
        url:"/front/logtime",
    })
})